package com.example.mobwe_project;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.widget.GridView;

public class ScanFolderActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_scan_folder);
		
		Log.d("ScanFolder", "Starting to scan the folder");		
		ImageAdapter adapter = new ImageAdapter( this );
		adapter.loadThumbnails();
		GridView gridview = (GridView) findViewById(R.id.gridView1);
		Log.d("ScanFolder", "Setting the adapter to the view");
		gridview.setAdapter( adapter );
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_scan_folder, menu);
		return true;
	}

}
